import Mock from 'mockjs'

Mock.mock('/routes', 'get', () => {
  let result = {}
  result.code = 0
  result.data = [{
    router: 'root',
    children: [
      {
        router: 'dashboard',
        children: ['workplace'],
      },
      {
        router:'system',
        children:['userManagement', 'roleManagement', 'authManagement']
      }
    ]
  }]
  return result
})
